import {Form} from '@/components/layout/form/form';
import {SWITCHS} from "@/utils/enums/type-enums";

export const settingForms: Form[] = [{
  label: null,
  card: [
    {
      name: 'hrFlag',
      type: SWITCHS,
      label: '心率',
      span: 4,
      // @ts-ignore
      hrFlag: 1,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    {
      name: 'thHrLow',
      type: 'text',
      // @ts-ignore
      thHrLow: '60',
      label: '低值',
      placeholder: '低值',
      span: 4,
    },
    {
      name: 'thHrHigh',
      type: 'text',
      label: '高值',
      // @ts-ignore
      thHrHigh: '100',
      placeholder: '高值',
      span: 4,
    },
    {line: true},
    //呼吸
    {
      name: 'brFlag',
      type: SWITCHS,
      label: '呼吸',
      span: 4,
      // @ts-ignore
      brFlag: 1,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    {
      name: 'thBrLow',
      type: 'text',
      label: '低值',
      // @ts-ignore
      thBrLow: '7',
      span: 4,
      placeholder: '低值',
    },
    {
      name: 'thBrHigh',
      type: 'text',
      label: '高值',
      placeholder: '高值',
      // @ts-ignore
      thBrHigh: '25',
      span: 4,
    },
    //换行
    {line: true},
    //在离床
    {
      name: 'awFlag',
      type: SWITCHS,
      label: '离床',
      placeholder: '离床',
      span: 4,
      // @ts-ignore
      awFlag: 1,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    {
      name: 'leaveBedStart',
      type: 'text',
      label: '开始离床时间',
      placeholder: '开始离床时间',
      span: 4,
    },
    {
      name: 'leaveBedEnd',
      type: 'text',
      placeholder: '结束离床时间',
      label: '结束离床时间',
      span: 4,
    },
    {line: true},
    //体温
    {
      name: 'temperatureSwitch',
      type: SWITCHS,
      label: '体温',
      span: 4,
      // @ts-ignore
      temperatureSwitch: 0,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    {
      name: 'temperatureHeight',
      type: 'text',
      label: '最高值(℃)',
      // @ts-ignore
      thBrLow: '37.3',
      span: 4,
      placeholder: '最高值(℃)',
    },
    {line: true},
    //血氧
    {
      name: 'saO2Switch',
      type: SWITCHS,
      label: '血氧',
      span: 4,
      // @ts-ignore
      saO2Switch: 0,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    {
      name: 'saO2Low',
      type: 'text',
      label: '最低值(%)',
      // @ts-ignore
      thBrLow: '90',
      span: 4,
      placeholder: '最低值(%)',
    },
    //血糖
    {line: true},
    {
      name: 'xueTangSwitch',
      type: SWITCHS,
      label: '血糖',
      placeholder: '血糖',
      // @ts-ignore
      xueTangSwitch: 0,
      span: 4,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    {
      name: 'xueTangTimeOne',
      type: 'text',
      label: '餐前报警开始(时)',
      placeholder: '餐前报警开始(时)',
      span: 4,
    },
    {
      name: 'xueTangTimeTwo',
      type: 'text',
      label: '餐后报警开始(时)',
      placeholder: '餐后报警开始(时)',
      span: 4,
    },
    {line: true},
    {
      name: '',
      type: '',
      label: '',
      placeholder: '低值',
      span: 4,
    },
    {
      name: 'xueTangBeforeEatLow',
      type: 'text',
      label: '餐前最低值',
      placeholder: '餐前最低值',
      span: 4,
    },
    {
      name: 'xueTangBeforeEatHeight',
      type: 'text',
      label: '餐前最高值',
      placeholder: '餐前最高值',
      span: 4,
    },
    {line: true},
    {
      name: '',
      type: '',
      label: '',
      placeholder: '低值',
      span: 4,
    },
    {
      name: 'xueTangAfterEatLow',
      type: 'text',
      label: '餐后最低值',
      placeholder: '餐后最低值',
      span: 4,
    },
    {
      name: 'xueTangAfterEatHeight',
      type: 'text',
      label: '餐后最高值',
      placeholder: '餐后最高值',
      span: 4,
    },
    //血压
    {line: true},
    {
      name: 'dPSwicth',
      type: SWITCHS,
      label: '血压',
      placeholder: '血压',
      // @ts-ignore
      dPSwicth: 0,
      span: 4,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    {
      name: 'dBPHeight',
      type: 'text',
      // @ts-ignore
      dBPHeight: '89',
      label: '收缩压最低值(mmHg)',
      placeholder: '收缩压最低值(mmHg)',
      span: 4,
    },
    {
      name: 'dBPLow',
      type: 'text',
      // @ts-ignore
      dBPLow: '60',
      label: '收缩压最高值(mmHg)',
      placeholder: '收缩压最高值(mmHg)',
      span: 4,
    },
    {
      name: 'sBPHeight',
      type: 'text',
      // @ts-ignore
      sBPHeight: '139',
      label: '舒张压最低值(mmHg)',
      placeholder: '舒张压最低值(mmHg)',
      span: 4,
    },
    {
      name: 'sBPLow',
      type: 'text',
      // @ts-ignore
      sBPLow: '90',
      label: '舒张压最高值(mmHg)',
      placeholder: '舒张压最高值(mmHg)',
      span: 4,
    },
    {line: true},
    //鼾声
    {
      name: 'snoreFlag',
      type: SWITCHS,
      label: '鼾声',
      span: 4,
      // @ts-ignore
      snoreFlag: 0,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    //换行
    {line: true},
    //体动
    {
      name: 'moveSwitch',
      type: SWITCHS,
      label: '体动',
      span: 4,
      // @ts-ignore
      moveSwitch: 1,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    {
      name: 'moveTime',
      type: 'text',
      // @ts-ignore
      moveTime: '300',
      label: '体动时间（秒）',
      placeholder: '体动时间（秒）',
      span: 4,
    },
    //换行
    {line: true},
    //翻身
    {
      name: 'tuFlag',
      type: SWITCHS,
      label: '翻身',
      placeholder: '翻身',
      // @ts-ignore
      tuFlag: 0,
      span: 4,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
    {
      name: 'thTu',
      type: 'text',
      // @ts-ignore
      thTu: '120',
      label: '翻身周期(分钟)',
      placeholder: '翻身周期(分钟)',
      span: 4,
    },
    //换行
    {line: true},
    //尿失禁
    {
      name: 'nsFlag',
      type: SWITCHS,
      label: '失禁',
      span: 4,
      // @ts-ignore
      nsFlag: 0,
      activeText: '是',
      inactiveText: '否',
      activeValue: 1,
      inactiveValue: 0,
    },
  ]
}
];
